<form>
<input type=text>
</form>
<script>
document.forms[0].enctype = 'multipart/form-data';
document.write(document.forms[0].encoding);
</script>
